#include <iostream>
#include <functional>

void print(const char* str, int a)
{
    std::cout << str << " " << a << std::endl;
}

int main()
{
    print("haha", 12);

    auto func = std::bind(print, "mihayou", 60);
    func();

    auto fund = std::bind(print, std::placeholders::_2, std::placeholders::_1);
    fund(100, "kk");

    return 0;
}